/*!
\copyright  Copyright (c) 2024 Qualcomm Technologies International, Ltd.
			All Rights Reserved.
			Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file
\ingroup    audio_domain
\brief      Stores production test selection of microphone to test

*/

#include "production_test_microphone_selection.h"

typedef struct
{
    bool is_enabled;
    ptm_mic_t selected_mic;
} production_test_microphone_selection_ctx_t;

static production_test_microphone_selection_ctx_t ctx;

void ProductionTestMicrophoneSelection_Set(ptm_mic_t mic)
{
    ctx.selected_mic = mic;
    ctx.is_enabled = TRUE;
}

void ProductionTestMicrophoneSelection_Clear(void)
{
    ctx.is_enabled = FALSE;
}

bool ProductionTestMicrophoneSelection_IsSet(void)
{
    return ctx.is_enabled;
}

ptm_mic_t ProductionTestMicrophoneSelection_Get(void)
{
    return ctx.selected_mic;
}